package cn.wp.common.core.exception;

/**
 * 鉴权异常
 * Created by chenyb on 2019/10/16
 */
public class WpAuthenticationException extends WpException {

    private static final long serialVersionUID = 1L;

    // 错误码
    private int code;

    public WpAuthenticationException() {
        super();
    }

    public WpAuthenticationException(String message, Throwable cause) {
        super(message, cause);
    }

    // 提供一个有参数的构造方法，可自动生成
    public WpAuthenticationException(String message) {
        super(message);
    }

    public WpAuthenticationException(int code,String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

}